package com.hanamaki.general;

public class Student<T> {

    T name;
    T age;

    public Student(T name, T age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public static void main(String[] args) {

        Student test = new Student("test", 1);
        System.out.println(test.toString());
        Student student = new Student(1, "1");
        System.out.println(student.toString());
    }
}
